home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet bezpieczenstwa
/
mini Pentoo LiveCD 2006.1
/
mpentoo-2006.1.iso
/
modules
/
nessus-2.2.8.mo
/
usr
/
bin
/
nasl-config
< prev
next >
Wrap
Text File
|
2006-06-13
|
780b
|
60 lines
#!/bin/sh
#
# Nessus libraries configuration script
#
# by Renaud Deraison - <deraison@cvs.nessus.org>
#
# Thanks to the GTK team for the idea.
#
# Some code comes from gtk-config
#
#
PREFIX=/usr
LIBDIR=$PREFIX/lib
INCLUDEDIR=$PREFIX/include
VERSION=2.2.8
usage()
{
echo "Usage : nasl-config [ --cflags | --libs | --version ]"
exit $1
}
test $# -gt 0 || usage 1
# check whether we have echo -n, depending
# on the current shell, used
case `echo -n` in
\-n) Xn= ; Xc='\c' ;;
*) Xn=-n ; Xc=
esac
while test $# -gt 0; do
case "$1" in
--version)
echo $VERSION
exit 0
;;
--libs)
echo $Xn "-L$DESTDIR$LIBDIR -lnasl $Xc"
;;
--cflags)
echo $Xn "-I$DESTDIR$INCLUDEDIR/nessus $Xc"
;;
--help | -h)
usage 0
;;
*)
usage 1
;;
esac
shift
done
echo